//
//  UIViewController+STNavigationTools.h
//  SportHome
//
//  Created by stoneobs on 17/1/11.
//  Copyright © 2017年 stoneobs. All rights reserved.
// 此类别是用于被navVC包装的UIviewcontrol 扩展类，主要功能是负责提供方法，修改导航Items,部分需要完善

#import <UIKit/UIKit.h>

@interface UIViewController (STNavigationTools)

- (void)setLeftItemWithTitle:(NSString*)title;
- (void)setLeftItemWithTitle:(NSString *)title titleColor:(UIColor*)color;
- (void)setLeftItemWithImage:(UIImage *)image;
- (void)setLeftItemWithImage:(UIImage *)image andwithTitle:(NSString*)title;
- (void)setLeftItemWithView:(UIView*)view;

- (void)setRightItemWithTitle:(NSString*)title;
- (void)setRightItemWithTitle:(NSString *)title titleColor:(UIColor*)color;
- (void)setRightItemWithImage:(UIImage*)image;
- (void)setRightItemWithImage:(UIImage*)image andwithTitle:(NSString*)title;
- (void)setRightItemWithView:(UIView*)view;

- (void)rightBarAction:(id)sender;
- (void)leftBarAction:(id)sender;

//隐藏和显示导航栏。
- (void)showNavagationbar;
- (void)hideNavagetionbar;
@end
